import java.io.FileInputStream;
import java.io.IOException;
import java.util.Properties;

/**
 * @author dinghao
 * @create 2021-09-09 13:24
 * @message
 */
public class ConnectMessage {
    static Properties prop = new Properties();
    static {
        try {
            prop.load(new FileInputStream("D:\\onedata_base\\spark_example\\src\\main\\resources\\cetccloud.properties"));
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

    public static String get(String key){
        return prop.get(key).toString();
    }
}
